<template>

    <h3>Props</h3>
    <ComponentB :onEvent="dataFn"/>
</template>

<script>
import { defaultClientMainFields } from 'vite';
import ComponentB from './ComponentB.vue';
export default{

    components:{
        ComponentB
    },
    methods:{
        dataFn(data){
            console.log(data);
            
        }
    }
}
</script>